package com.bby.doc;

import io.github.yedaxia.apidocs.Docs;
import io.github.yedaxia.apidocs.DocsConfig;
import io.github.yedaxia.apidocs.plugin.markdown.MarkdownDocPlugin;

public class DocCreator {
    public static void main(String[] args) {
        DocsConfig config = new DocsConfig();
        config.setProjectPath("F:\\Projects\\disk\\my-share-disk\\"); // root project path
        config.setProjectName("bbyDisk"); // project name
        config.setApiVersion("V1.0");       // api version
        config.setDocsPath("F:\\Projects\\disk\\doc"); // api docs target path
//        config.addJavaSrcPath("F:\\Projects\\disk\\my-share-disk\\captcha\\src\\main\\java");
        config.setAutoGenerate(Boolean.TRUE);  // auto generate
        config.addPlugin(new MarkdownDocPlugin());
        Docs.buildHtmlDocs(config); // execute to generate
        System.out.println("F:\\Projects\\disk\\doc");
    }
}
